Skip to main content

All Questions

4votes
1answer
166views

Holding state in a service class in MVVM

In my SwiftUI app, I have a UpNextManager view model and a service class called UpNextService which contains many methods to read up next items from disk, write them to disk and much more. The service ...
User95797654974's user avatar
0votes
2answers
275views

What is a good architecture / design pattern for giving multiple shared attributes in different combinations?

I have a need for many different objects to have various combinations of attributes. For a demonstrative example, a flaming dog would have a dog attribute, a flame attribute, and a tail attribute, ...
Fred Etingen's user avatar
1vote
2answers
323views

Combining Command and Visitor design patterns

Designing the architecture of a personal project, I've come up with the idea of using the combination of these two patterns to solve an architectural issue. In an MVC context, I need to implement ...
Gareg's user avatar
0votes
4answers
415views

Best practice for using read-write lock

Given a system where users can access different services through the API for conducting business transactions, I am currently working on integrating a read-write lock into the system. One approach I ...
YiLuo's user avatar
2votes
2answers
259views

How to design fault-tolerant distributed "all-or-nothing" system?

I have a system where Client(C) sends request to Server(S0). S0 then sends the response back to Client that "request received" and closes the connection. C can regularly poll S0 to check on ...
sam's user avatar
  • 33
0votes
1answer
125views

What is the name of the approach (practice) when several unrelated entities are returned at once in the response to a request [closed]

For example, for a mobile frontend, you need to get all the data for rendering at once. The interface is divided into blocks, in which there can be both blocks with a catalog (categories) and other ...
fogel's user avatar
-1votes
2answers
137views

Appropriate design pattern for coupled Objects

I code an Object-Oriented simulation where you can have a Unit move on a Terrain. The cost of such move depends both on both Unit capabilities and Terrain features: a boat can move on water, a plane ...
Uriel's user avatar
3votes
3answers
1kviews

Undo/Redo with Command Pattern and Object Destruction

I'm developing a Command Pattern with Undo/Redo support. The environment is Unity C# but should be mostly language-agnostic. My initial commands comprise of adding and removing objects to and from a ...
maxresdefault's user avatar
-2votes
3answers
228views

Feasibility of a service oriented concept for a device architecture

Assume a device using Raspberry Pi to control some hardware. This diagram tries to clarify the components: SOA concept feasibility is being explored right now. The motivations are: Components in ...
Megidd's user avatar
1vote
1answer
6kviews

Design Pattern for accessing data over RestAPI calls

I am looking out for a general design strategy or pattern designing various components in my client application. Here are high level details: The data is accessed my making a RestAPI call. The data ...
theimpatientcoder's user avatar
1vote
1answer
900views

High-level overview or architecture for processing a huge file within a fixed time frame

I was asked this question in an interview of Crypto company for the role of backend developer. Please suggest me another stack-site if this is not the place to ask this question. There is a subsystem ...
YouKnowWhoIAm's user avatar
1vote
2answers
158views

How to organize logic for table-like feature set? Looking for architecture pattern advice

I have a table-like feature set in a game. What it means is I have 10 types of battle, and 10 types of features related to battles, like hints, start/end logic, rewarding/spending resources, statistic ...
Pavel Oliferovskiy's user avatar
1vote
0answers
49views

Orchestrator or coordination pattern in Azure?

I am designing a background web job in Azure that, given a list of users it retrieves from a database, makes calls to a separate messaging microservice (for each record) that will end up sending N ...
silverCORE's user avatar
0votes
1answer
442views

Wrapping ReactJS UX component library in another layer of abstraction, pros and cons?

There's AntD library with various UX components. Right now I required to wrap all components which I'm using in another layer, to make an abstraction. For example, if I'm using AntForm component I ...
Anatoly's user avatar
16votes
3answers
6kviews

Is using Observer pattern a good idea while building a Chess Game?

I am trying to design a Chess Game using OOPs concepts that has a UI element to it. My idea is to show the number of squares / cells a piece can travel to when selected. Basically I want to show the ...
Auro's user avatar
  • 291

153050per page
close